<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Artists</title>
	</head>
	<body>
		<!-- user login/logout -->
		<s:if test="logged==true">
			<div align="rigth"><s:property value="loggedUser"/>&nbsp;<a href="logout">Logout</a></div>
		</s:if>
		<s:else>
			<div align="rigth"><a href="login">Login</a></div>
		</s:else>
		<!-- content -->
		<table>
			<s:iterator value="artists">
				<tr>
					<td>
						<a href="artistView?name=${name}"><s:property value="name"/></a>
					</td>
				</tr>
			</s:iterator>
		</table>
	</body>
</html>